package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 *  企业申诉管理
 *
 * @author code-generate
 * @date 2022-02-18
 */
@Data
@DbTable(tableName = "t_appeal")
public class Appeal extends BaseEntity {
        /**
     * 巡检上报id
     */
    @DbTableField(columnName = "c_appeal_id", dbType = DbTypeEnum.VARCHAR)
    public String appealId ;

    /**
     * 巡检上报编号
     */
    @DbTableField(columnName = "c_code", dbType = DbTypeEnum.VARCHAR)
    public String code ;

    /**
     * 申请人ID
     */
    @DbTableField(columnName = "c_user_id", dbType = DbTypeEnum.INTEGER)
    public Integer userId ;

    /**
     * 申请人
     */
    @DbTableField(columnName = "c_user_name", dbType = DbTypeEnum.VARCHAR)
    public String userName ;

    /**
     * 上报时间
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime date ;

    /**
     * 申请内容
     */
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    public String content ;

    @DbTableField(columnName = "c_approval", dbType = DbTypeEnum.INTEGER)
    public Boolean approval = false;


}
